<div class="container"> 
	<div class="row"> 
		<div class="panel panel-info">
			<div class="panel-heading">
				<div class="panel-title">All TLD Category</div>
			</div>
			<div class="panel-body">
				
				<div class="row">
					<div class="col-md-12">
						<div class="well">
							<div class="row">
								<div class="col-md-3 edge-right">
									<div id="categoryList" class="tld-category">
										<h4 style="margin-bottom:0">Categories</h4>
										<br />
										<ul class="category-list">
											<?php foreach($all_category as $category){?>
											<li>
												<a href="#"><?=$category['category_name']?></a></li>
											<?}?>
										</ul>
									</div>
								</div>
								<div class="col-md-9">
									<h3 style="margin-top:0">Featured TLDs</h3>
									<?php foreach($all_category_tld as $tld){?>
									<div class="col-md-6">
										<div class="clearfix tlditem" style="padding:0">
											<div style="line-height:30px" class="pull-left">
												<span title="">
													<strong>
														<a href="<?=base_url('users/tlddetails').'/'.$tld['tld_name']?>">.<?=strtoupper($tld['tld_name'])?></a>
													</strong>
												</span>
												<br />
												<small>
													<span style="text-overflow: ellipsis; width:330px; white-space: nowrap; overflow: hidden; display: inline-block; line-height: 1.1em" class="blur">
													<?=$tld['tld_desc']?>	
													</span>
												</small>
											</div>
											
										</div>
									</div>
									<?}?>
									
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>

function addwatchlist(tld)
{
	
	$.ajax({
		url: '<?php echo base_url('enom/addwatchlist');?>',
		type: 'post',
		data: 'tld=' + tld ,
		dataType:'json',
		
		beforeSend: function() {
			$('#processing-modal').modal('show');
		},		
		complete: function() {
			//$(e).children('.blue').css('background','#F9B014');
			//$(e).children('.blue').children('span').text('checkout');
		},
		success: function(json) {
			if(json['message'])
			{
				$('#ajax_msg').html('<div class="alert alert-success alert-dismissable flashmsg"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>'+ json['message'] + '</div>');
				$('#ajax_msg .flashmsg').delay(5000).fadeOut('slow');
				$('html, body').animate({ scrollTop: 0 }, 'slow'); 
				$('#processing-modal').modal('hide');
				if(json['message']=="Login Required")
				{
					location=json['login_url'];
				}
				
			}
			
		}
	});
}
</script>